import request from '@/utils/request'

// 查询活动报名信息列表
export function listAcitivityinfo(query) {
  return request({
    // url: '/system/acitivityinfo/list',
    url:'/system/docactivity/queryList',
    method: 'get',
    params: query
  })
}

// 查询活动报名信息详细
export function getAcitivityinfo(id) {
  return request({
    url: '/system/docactivity/' + id,
    method: 'get'
  })
}

// 新增活动报名信息/system/docactivity
export function addAcitivityinfo(data) {
  return request({
    url: '/system/docactivity',
    method: 'post',
    data: data
  })
}

// 修改活动报名信息
export function updateAcitivityinfo(data) {
  return request({
    url: '/system/docactivity',
    method: 'put',
    data: data
  })
}

// 删除活动报名信息
export function delAcitivityinfo(id) {
  return request({
    url: '/system/docactivity/' + id,
    method: 'delete'
  })
}

// 活动操作
export function AcitivityOperate(data) {
  return request({
    url: '/system/docactivity/operate',
    method: 'post',
	data: data
  })
}

// 活动奖项删除
export function Docactivityawards(id) {
  return request({
    url: '/system/docactivity/awards/' + id,
    method: 'delete'
  })
}

// 活动曲目删除 /system/docactivity/items/{id}
export function Docactivityitems(id) {
  return request({
    url: '/system/docactivity/items/' + id,
    method: 'delete'
  })
}